package cn.example.jpa.service;

import cn.example.jpa.entity.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CarService {
    Long add(Car car);
    int del(Long id);
    Long update(Car car);
    Car get(Long id);
    Page<Car> getAll(Car car, PageRequest pageRequest);

}
